aa ab ab ab ab ab ab ab ab ab ab ab ab ab ac ab ab ad ae ae ae af ag ag 
ab ab ab ab ab ab ab ah ai ai ai ai ai ai ae ai ai ae ae ae ae af ag ag 
ab ab ab ab ab ab ab ad ae ae ae ae ae ae ae ae ae ae ae ae ae af ag ag 
ab ab ab ab ab ab ab aj ae ae ae ae ae ae ae ae ae ae ae ae ae af ag ag 
ab ab ab ab ab ab ab ab ad ae ae ae ae ae ae ae ae ae ae ae ae af ag ag 
ab ab ab ab ab ab ab ab aj ae ae ae ae ae ae ae ae ae ae ae ae af ag ag 
ab ab ab ab ab ab ab ab ab ad ae ae ae ae ae ae ae ae ae ae ae ae ak ag 
ab ab ab ab ab ab ab ab ab ad ae ae ae ae ae ae ae ae ae ae ae ae af ag 
ab ab ab ab ab ab ab ab ab ad ae ae ae ae ae ae ae ae ae ae ae ae af ag 
ab ab ab ab ab ab ab ab ah ae ae ae ae ae ae ae ae ae ae ae ae ae ae al 
ab ab ab ab ab ab ab ab ad ae ae ae ae ae ae ae ae ae ae ae ae ae ae ae 
ab ab ab ab ab ab ab ab ad ae ae ae ae ae ae ae ae ae ae ae ae ae ae ae 
ab ab ab ab ab ab ab ah ae ae ae ae ae ae ae ae ae ae ae ae ae ae ae am 
ab ab ab ab ab ab ab ad ae ae ae ae ae ae ae ae ae ae ae ae ae ae an ab 
ab ab ab ab ab ab ab ad ae ae ae ae ae ae ae ae ae ae ae ae ae ae an ab 
ab ab ab ab ab ab ab ad ae ae ae ae ae ae ae ae ae ae ae ae ae ae an ab 
ab ab ab ab ab ab ab ad ae ae ae ae ae ae ae ae ae ae ae ae ae ae ae ai 
ab ab ab ab ab ab ab aj ae ae ae ao ap aq ae ae ae ae ae ae ae ae ae ae 
ab ab ab ab ab ab ab ab ad ae ao ar as at aq ae ae ae ae ae ae ae ae ae 
ab ab ab ab ab ab ab ab ad ae au as as as at aq ae ae ae ae ae ae ae ae 
ab ab ab ab ab ab ab ab ad ae av aw aw aw ax at aq ae ae ae ae ae ae ae 
ab ab ab ab ab ab ab ab ad ae ae af ay az au as aA ae ae ae ae ae ae ae 
ab ab ab ab ab ab ab ab aj ae ao ap aB ap ar aC aD ae ae ae ae ae ae ae 
ab ab ab ab ab ab ab ab ab ad au as as as as aA ae ae ae ae ae ae ae ae 

:def
battle_bg=generic.png
level_right=world1x1.txt
level_down=world0x2.txt
level_up=world0x0.txt
level_upright=world1x0.txt
level_downright=world1x2.txt
:aa
pix("water/water.png")
walk(0)
if(stat("level"), "<", 2)
	mapstat("addmonster", "Orc")
	end()
endif
if(stat("level"), "<", 4)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	end()
endif
if(stat("level"), "<", 6)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	end()
endif
if(stat("level"), "<", 8)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Acid Slime")
	end()
endif
if(stat("level"), "<", 10)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Giant Spider")
	end()
endif
if(stat("level"), "<", 12)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Wizard")
	end()
endif
if(stat("level"), "<", 14)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Goblin")
	end()
endif
if(stat("level"), "<", 16)
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Skeleton")
	end()
endif
if(stat("level"), "<", 18)
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Troll")
	end()
endif
if(stat("level"), "<", 20)
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Death Knight")
	end()
endif
if(stat("level"), "<", 22)
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Bronze Golem")
	end()
endif
if(stat("level"), "<", 24)
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Dark Goblin")
	end()
endif
if(stat("level"), "<", 26)
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Iron Golem")
	end()
endif
if(stat("level"), "<", 28)
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Gold Dragon")
	end()
endif
if(stat("level"), "<", 28)
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Lost Soul")
	mapstat("addmonster", "Lost Soul")
	end()
endif
if(stat("level"), "<", 30)
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Lost Soul")
	mapstat("addmonster", "Ice Dragon")
	mapstat("addmonster", "Ice Dragon")
	end()
endif
if(stat("level"), "<", 32)
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Lost Soul")
	mapstat("addmonster", "Ice Dragon")
	mapstat("addmonster", "Platinum Golem")
	mapstat("addmonster", "Platinum Golem")
	end()
endif
if(stat("level"), "<", 34)
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Lost Soul")
	mapstat("addmonster", "Ice Dragon")
	mapstat("addmonster", "Platinum Golem")
	mapstat("addmonster", "Black Dragon")
	mapstat("addmonster", "Black Dragon")
	end()
endif
#above level 34:
mapstat("addmonster", "Iron Golem")
mapstat("addmonster", "Gold Dragon")
mapstat("addmonster", "Lost Soul")
mapstat("addmonster", "Ice Dragon")
mapstat("addmonster", "Platinum Golem")
mapstat("addmonster", "Black Dragon")
mapstat("addmonster", "Black Dragon")
:ab
pix("water/water.png")
walk(0)
:ac
pix("water/bridge_ns.png")
walk(1)
:ad
pix("water/water_e.png")
walk(1)
:ae
pix("grass.png")
walk(1)
:af
pix("hills/hills_w.png")
walk(0)
:ag
pix("hills/hills_n4.png")
walk(0)
:ah
pix("water/water_se.png")
walk(1)
:ai
pix("water/water_s.png")
walk(1)
:aj
pix("water/water_ne.png")
walk(1)
:ak
pix("hills/hills_w2.png")
walk(0)
:al
pix("hills/hills_s.png")
walk(1)
:am
pix("water/water_nw.png")
walk(1)
:an
pix("water/water_w.png")
walk(1)
:ao
pix("forest_nw2.png")
walk(1)
:ap
pix("forest_n.png")
walk(1)
:aq
pix("forest_ne.png")
walk(1)
:ar
pix("forest_nw3.png")
walk(1)
:as
pix("forest.png")
walk(1)
:at
pix("forest_ne2.png")
walk(1)
:au
pix("forest_w.png")
walk(1)
:av
pix("forest_sw.png")
walk(1)
:aw
pix("forest_s.png")
walk(1)
:ax
pix("forest_sw2.png")
walk(1)
:ay
pix("hills/hills_e_w.png")
walk(0)
:az
pix("hills/hills_e.png")
walk(0)
:aA
pix("forest_e.png")
walk(1)
:aB
pix("forest_n.png")
walk(1)
Action
if(var("found_m_sword"), "=", 1)
    end()
endif

if(var("firewand"), ">", 15)
	dialog("You search the trees at the base of the mountain as Gawain had \
	instructed. It takes a few hours, but you come to a  clearing. There before \
	you stands a massive sword, point first in the dirt. \n \n \
	It seems amazing that it shimmers despite what has to have been centuries \
	exposed to the elements. Placing your hand upon the hilt sends a warm shock \
	through your arm. \n \n \
	The blade glows an eerie blue and your head feels weird, almost as if \
	something told you you have permission to take the sword.")
    set("found_m_sword", 1)
    inv("give", "Magic Sword")
endif
:aC
pix("forest_se2.png")
walk(1)
:aD
pix("forest_se.png")
walk(1)
